<style>
    .tpl2-item{
        color: #666;
        text-decoration: none;
    }
    .tpl2-item>div:hover{
        color: #222;
        border: 1px solid #999;
        box-shadow: 0px 0px 5px #999;
    }
</style>
<div class="container">
    <?php foreach ($list as $value):?>
    <a href="<?= yii\helpers\Url::to(["site/tpl2p","id" => $value->ta2_id])?>" class="tpl2-item">        
        <div style="width: 60%; height: 170px; position: relative; background-color: #ffffff; margin: 0 auto; margin-top: 20px;">
            <div style="width: 80px;height: 80px;background-color: #0099ff; border-radius: 40px; position: absolute; left: 16px;top: 20px; color: white; font-size: 50px; padding-left: 12px;"><?= explode("-",$value->ta2_time)[1] ?></div>
            <div style="width: 40px;height: 40px;background-color: #0099ff; border-radius: 20px; position: absolute; left: 100px; top: 30px; color: white; font-size: 20px; padding-left: 8px; padding-top: 8px;"><?= explode("-", explode(" ",$value->ta2_time)[0])[2] ?></div>
            <div style="position: absolute; left: 180px;top:25px;"><h3><?= $value->ta2_title?></h3></div>
            <div style="position: absolute; left: 16px;top:105px;">
                <h5 style="text-indent: 2em"><?= $value->ta2_descript?></h5>
            </div>
        </div>
    </a>
    <?php endforeach;?>
</div>
<div class="pagination pull-right page_style">
    <?php echo yii\widgets\LinkPager::widget(['pagination' => $pager, 'prevPageLabel' => '&#8249;', 'nextPageLabel' => '&#8250;']); ?>
</div>
